package com.srit.map.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.srit.core.bean.Page;
import com.srit.core.ibatis.dao.SqlMapDao;
import com.srit.map.business.bean.Report;
import com.srit.map.business.service.ReportService;
@Service
public class ReportServiceImpl implements ReportService{

	@Autowired(required = true)
	private SqlMapDao sqlMapDao;
	@Override
	public void insert(Report report) {
		// TODO Auto-generated method stub
		sqlMapDao.save("Report.insert", report);
	}
	@Override
	public int pageCount(Page page) {
		int num = (Integer)sqlMapDao.queryForObject("Report.count_page",page);
		return num;
	}

	
}
